#ifndef SEARCHMP3DIALOG_H
#define SEARCHMP3DIALOG_H
#include<QDialog>

class QPushButton;
class QUrl;
class QLabel;
class QLineEdit;
class QHBoxLayout;
class QTableWidget;

struct element
{
    QString str;
    int row;
    element(QString a,int b):str(a),row(b){}
};


class SearchMp3Dialog : public QWidget
{
  Q_OBJECT

public:
    SearchMp3Dialog(QWidget *parent);
    void setTable(QTableWidget* Table);
    bool isSearching();
    QVector<int> getRowList();
private slots:
    void search();
    void innerSearch(QString target);
private:
    QPushButton *ButtonOK;
    //QPushButton *ButtonCancel;
    QUrl *url;
    QLabel *label;
    QLineEdit *lineEdit;
    QHBoxLayout *layout;
    QTableWidget *table;
    QList<element> list;
    QVector<int> rowList;
};

#endif // SEARCHMP3DIALOG_H
